package de.klenkse.eclipse.ftpsync.synchronizer;

import org.apache.commons.net.ftp.FTPClient;
import org.eclipse.core.resources.IResourceDelta;

/**
 * Implements a stub command.
 */
public class NoOpCommand extends ResourceCommand {
	/**
	 * The resource delta.
	 */
	private IResourceDelta delta;
	/**
	 * The relative path of the resource.
	 */
	private String relPath;

	/**
	 * Constructor.
	 */
	public NoOpCommand(IResourceDelta delta, String relPath) {
		this.delta = delta;
		this.relPath = relPath;
	}

	/** {@inheritDoc} */
	@Override
	public String toString() {
		return "NOOP: " + delta.getResource().toString() + ", relPath: "
				+ relPath;
	}

	/** {@inheritDoc} */
	@Override
	public void execute(FTPClient client) {
		// TODO Command has no op.
		System.out.println("Executing stub command.");
	}
}
